package com.heima.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum UserStatus {
    ENABLE(1, "启用"),
    DISABLED(2, "禁用");
    @EnumValue
    private final int status;
    @JsonValue
    private final String desc;

    UserStatus(int value, String desc) {
        this.status = value;
        this.desc = desc;
    }
}